import { request } from './request.js'
request.defaultData.baseUrl = 'http://cyjs.pzhkj.cn/'

export function getHjhm() {
  return new Promise((resolve, reject) => {
    request
      .ajax({
        path: 'api/index/getHjhm',
        method: 'POST',
        afterAjax: res => {
          resolve(res)
        },
      })
      .catch(err => {
        reject(err)
      })
  })
}
